    <!-- *** CUT top -->
    <table width="800"  border="0" cellspacing="0" cellpadding="0" class="form" id="vpage_top_table">
        <tr>
            <td align="left">
                <table width="100%"  border="0" cellspacing="0" cellpadding="0">
                    <tr>
                        <td>
                            <div class="form_title">Virtual page</div>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <!-- If you don't want notes erase this START -->
        <tr>
            <td>
                <table width="100%"  border="0" cellspacing="0" cellpadding="0" class="form_note">
                    <!-- Repeat this fo additional notes START -->
                    <tr>
                        <td valign="top" align="left">
                            <table width="100%"  border="0" cellspacing="0" cellpadding="4" class="form_note_title">
                                <tr>
                                    <td><img src="img/modules/form_html_tpl_static_ajax_metallic/exclamation_mark.png" border="0" alt="icon exclamation mark"  width="16" height="16" /></td>
                                    <td width="100%" align="left">Note:</td>
                                </tr>
                            </table>
                        </td>
                        <td align="left" width="99%">
                            <div class="form_note_text">Fields marked with &quot;*&quot; are mandatory.</div>
                        </td>
                    </tr>
                    <!-- Repeat this fo additional notes END-->
                </table>
            </td>
        </tr>
        <!-- If you don't want notes erase this END -->
        <tr>
            <td>
                <div id="vpage">
                    <form onsubmit="submit_ajax_vpage(); return false;" action="admin/modules/tangra_cms/vpage/vpage_edit.php" method="post" name="vpage_form" enctype="application/x-www-form-urlencoded">
                        <table width="100%" border="0" cellspacing="0" cellpadding="0">
                            <tr>
                                <td align="left">
                                    <table width="100%"  border="0" cellspacing="0" cellpadding="0" class="form_row">
{if $add_new}                                    
                                        <tr>
                                            <td class="form_even_row">
                                                <!-- form_field_select vpage_template START-->
                                                <table width="100%" border="0" cellpadding="3" cellspacing="0" class="form_row">
                                                    <tr>
                                                        <td width="180">
                                                            <div align="right">Template*:</div>
                                                        </td>
                                                        <td width="1%">
                                                            <select class="form" name="vpage_template"  size="1" id="vpage_template">
                                                                {foreach from=$vpage_template_options item=option} 
                                                            <option value="{$option.html_value}"{if $option.selected} selected="selected"{/if}>{$option.label}</option>
                                                                {/foreach}                                                             
                                                            </select>
                                                        </td>
                                                        <td>&nbsp;</td>
                                                    </tr>
                                                    {if $vpage_template_has_error}
                                                    <!-- Potential errors START -->
                                                    {if $vpage_template_error_mandatory_missing}
                                                    <!-- mandatory_missing START -->
                                                    <tr>
                                                        <td></td>
                                                        <td colspan="2">
                                                            <div class="form_error_message">Error: Field is mandatory.</div>
                                                        </td>
                                                    </tr>
                                                    <!-- mandatory_missing END -->
                                                    {/if}
                                                    {if $vpage_template_error_invalid_value}
                                                    <!-- invalid_value START -->
                                                    <tr>
                                                        <td></td>
                                                        <td colspan="2">
                                                            <div class="form_error_message">Error: Invalid value.</div>
                                                        </td>
                                                    </tr>
                                                    <!-- invalid_value END -->
                                                    {/if}
                                                    <!-- Potential errors END -->
                                                    {/if}
                                                </table>
                                                <!-- form_field_select vpage_template END-->
                                            </td>
                                        </tr>     
{/if}                                                                       
                                        <tr>
                                            <td class="form_odd_row">
                                                <!-- form_field_text vpage_path START-->
                                                <table width="100%" border="0" cellpadding="3" cellspacing="0" class="form_row">
                                                    <tr>
                                                        <td width="180">
                                                            <div align="right">Page path*:</div>
                                                        </td>
                                                        <td>
                                                            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                                                <tr>
                                                                    <td><input class="form" name="vpage_path" type="text" value="{$vpage_path_val}" maxlength="255" size="60" id="vpage_path"/></td>
                                                                    <td>&nbsp;&nbsp;</td>
                                                                    <td><input class="form" name="vpage_transliterate" type="checkbox" value="{$vpage_transliterate_val}"{if $vpage_transliterate_checked} checked="checked"{/if} id="vpage_transliterate" /></td>
                                                                    <td>&nbsp;</td>
                                                                    <td>Transliterate (works only for new pages)?</td>
                                                                </tr>
                                                            </table>
                                                        </td>
                                                        <td>&nbsp;</td>
                                                    </tr>
                                                    {if $vpage_path_has_error}
                                                    <!-- Potential errors START -->
                                                    {if $vpage_path_error_mandatory_missing}
                                                    <!-- mandatory_missing START -->
                                                    <tr>
                                                        <td></td>
                                                        <td colspan="2">
                                                            <div class="form_error_message">Error: Field is mandatory.</div>
                                                        </td>
                                                    </tr>
                                                    <!-- mandatory_missing END -->
                                                    {/if}
                                                    {if $vpage_path_error_max_length_exceeded}
                                                    <!-- max_length_exceeded START -->
                                                    <tr>
                                                        <td></td>
                                                        <td colspan="2">
                                                            <div class="form_error_message">Error: Allowed maximum of 255 characters exceeded.</div>
                                                        </td>
                                                    </tr>
                                                    <!-- max_length_exceeded END -->
                                                    {/if}
                                                    {if $vpage_path_error_duplicate_path}
                                                    <!-- duplicate_path START -->
                                                    <tr>
                                                        <td></td>
                                                        <td colspan="2">
                                                            <div class="form_error_message">Error: Duplicate path. There is another vpage with same path.</div>
                                                        </td>
                                                    </tr>
                                                    <!-- duplicate_path END -->
                                                    {/if}
                                                    {if $vpage_path_error_invalid_path}
                                                    <!-- invalid_path START -->
                                                    <tr>
                                                        <td></td>
                                                        <td colspan="2">
                                                            <div class="form_error_message">Invalid path. Must not start with / (slash). Double slashes (//) are NOT allowed. Spaces NOT allowed.</div>
                                                        </td>
                                                    </tr>
                                                    <!-- invalid_path END -->
                                                    {/if}
                                                    {if $vpage_path_error_normal_exist}
                                                    <!-- normal_exist START -->
                                                    <tr>
                                                        <td></td>
                                                        <td colspan="2">
                                                            <div class="form_error_message">There is a normal file with same path: {$htdocs_dir}{$path}.</div>
                                                        </td>
                                                    </tr>
                                                    <!-- normal_exist END -->
                                                    {/if}
                                                    <!-- Potential errors END -->
                                                    {/if}              
                                                </table>
                                                <!-- form_field_text vpage_path END-->
                                            </td>
                                        </tr>

                                                                       
                                    </table>
                                    {if !$add_new}
									<input name="vpage_template" id="vpage_template" type="hidden" value="{$vpage_template_hmtl_value}" />                                    
                                    {/if}
                                    <input type="hidden" name="vpage_form_id" value="{$vpage_form_id_val}" id="vpage_form_id"/>
                                    <input type="hidden" name="vpage_guard_value" value="{$vpage_guard_value_val}" id="vpage_guard_value"/>
                                </td>
                            </tr>
                            <tr>
                                <td align="left">
                                    <table width="100%" border="0" cellpadding="0" cellspacing="0" class="submit_row">
                                        <tr>
                                            <td width="180">&nbsp;</td>
                                            <td width="100" align="left">
                                                <input name="vpage_submit" type="submit" value="Save" class="form_submit" />
                                            </td>
                                            <td width="50">&nbsp;</td>
                                            <td>
                                                <div class="form_cancel">
													{if $add_new}
                                                    	{if $category_id}                                                
                                                        	<a href="admin/modules/tangra_cms/category/category_content.php">
                                                        {else}
		                                                	<a href="admin/modules/tangra_cms/vpage/vpages.php">
                                                        {/if}
                                                    {else}
	                                                    <a href="admin/modules/tangra_cms/vpage/vpage_manage.php?manage={$vpage_id}">
                                                	{/if}Cancel</a></div>
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                        </table>
                    </form>
                </div>
            </td>
        </tr>
    </table>
    <!-- *** CUT bottom -->
